package org.springcloud.wisdom.spring_01_canteen.address;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("wisdom.address")
public class Address {
    //主键
    @TableId(type = IdType.AUTO, value = "wisdom.address.id")
    private Integer id;
    //学生id
    @TableField("wisdom.address.stuid")
    private Integer stuid;
    //名字
    @TableField("wisdom.address.name")
    private String name;
    //地址
    @TableField("wisdom.address.address")
    private String address;
    //电话
    @TableField("wisdom.address.phone")
    private String phone;

    //是否为默认地址
    @TableField("wisdom.address.status")
    private String status;
}
